﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System;
using DG.Tweening;

public class ItemPanelMove : MonoBehaviour
{




    // Use this for initialization
    void Start () {
    
		
	}
	
	// Update is called once per frame
	void Update () {
        this.GetComponent<Image>().rectTransform.Translate(0, 0.3f, 0);
        if(this.GetComponent<Image>().rectTransform.localPosition.y>=505) {
            this.GetComponent<Image>().rectTransform.localPosition = new Vector3(-1, -900, 0);
        }
	}


}
